package com.ruoyi.driver.mapper;

import java.util.List;

import com.ruoyi.driver.domain.CarownerCardetials;
import com.ruoyi.driver.domain.CarownerDetials;

/**
 * 车主详情Mapper接口
 * 
 * @author Wevon
 * @date 2024-08-13
 */
public interface CarownerDetialsMapper 
{
    /**
     * 查询车主详情
     * 
     * @param id 车主详情主键
     * @return 车主详情
     */
    public CarownerDetials selectCarownerDetialsById(Long id);

    /**
     * 查询车主详情列表
     * 
     * @param carownerDetials 车主详情
     * @return 车主详情集合
     */
    public List<CarownerDetials> selectCarownerDetialsList(CarownerDetials carownerDetials);

    /*根据手机号查询车主*/
    public CarownerDetials selectCarOwnerDetailsByPhone(String phone);

    /**
     * 新增车主详情
     * 
     * @param carownerDetials 车主详情
     * @return 结果
     */
    public int insertCarownerDetials(CarownerDetials carownerDetials);

    /**
     * 修改车主详情
     * 
     * @param carownerDetials 车主详情
     * @return 结果
     */
    public int updateCarownerDetials(CarownerDetials carownerDetials);

    /**
     * 删除车主详情
     * 
     * @param id 车主详情主键
     * @return 结果
     */
    public int deleteCarownerDetialsById(Long id);

    /**
     * 批量删除车主详情
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteCarownerDetialsByIds(Long[] ids);
}
